package com.juqimiao.linn.logging;

import org.slf4j.LoggerFactory;

/**
 * 封装Logback的Logger Proxy。
 */
public class CustomizedLogger extends Logger {

    private org.slf4j.Logger logger;

    public CustomizedLogger(Class<?> clz){
        super(clz);
        logger = LoggerFactory.getLogger(clz);
    }
    @Override
    public void error(String message, Throwable throwable) {
        logger.error(message, throwable);
    }

    @Override
    public void warn(String message) {
        logger.warn(message);
    }

    @Override
    public void warn(String message, Throwable throwable) {
        logger.warn(message, throwable);
    }

    @Override
    public void info(String message) {
        logger.info(message);
    }

    @Override
    public void info(String message, Throwable throwable) {
        logger.info(message, throwable);
    }

    @Override
    public void debug(String message) {
        logger.debug(message);
    }

    @Override
    public void debug(String message, Throwable throwable) {
        logger.debug(message, throwable);
    }
}
